package com.os;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 系统主入口
 */
@SpringBootApplication
@ComponentScan({"com.os.start", "com.os.task", "com.os.config", "com.os.utils", "org.n3r.idworker"})
@MapperScan("com.os.start.mapper")  //特别注意mappscan引入的包路径要正确
@EntityScan(basePackages = {"com.os.start"})
//开启定时任务
//@EnableScheduling
//开启异步调用
@EnableAsync
public class App {

	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}

}
